class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column :name, :string
      t.column :mail, :string
      t.column :description, :text
      t.column :img, :string    #TODO how to save the image for user? Url or blob?
      t.column :hashed_password, :string
      t.column :salt, :string
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
